home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / SHARED.DIR / 01963_Script_Viking Maps < prev    next >
Text File  |  1995-09-13  |  10KB  |  358 lines

  1. on VMapRollover 
  2.   repeat while rollover(6)
  3.     VikingCursor
  4.     if the mouseV > 285 and the mouseV < 345 then
  5.       if the mouseH > 59 and the MouseH < 124 then
  6.         set the castnum of sprite 6 = the number of cast "PV080500.PIC"
  7.         updatestage
  8.         if (the mousedown) then
  9.           puppetsprite 2, false
  10.           go "Map1"
  11.           abort
  12.         end if
  13.       else
  14.         if the mouseH > 124 and the MouseH < 188 then
  15.           set the castnum of sprite 6 = the number of cast "PV080600.PIC"
  16.           updatestage
  17.           if (the mousedown) then
  18.             puppetsprite 2, false
  19.             go "map2"
  20.             abort
  21.           end if
  22.         end if
  23.       end if
  24.     else
  25.       if the mouseV > 345 and the mouseV < 404 then
  26.         if the mouseH > 59 and the MouseH < 124 then
  27.           set the castnum of sprite 6 = the number of cast "PV080700.PIC"
  28.           updatestage
  29.           if (the mousedown) then
  30.             puppetsprite 2, false
  31.             go "map3"
  32.             abort
  33.           end if
  34.         else
  35.           if the mouseH > 124 and the MouseH < 188 then
  36.             set the castnum of sprite 6 = the number of cast "PV080800.PIC"
  37.             updatestage
  38.             if (the mousedown) then
  39.               puppetsprite 2, false
  40.               go "map4"
  41.               abort
  42.             end if
  43.           end if
  44.         end if
  45.       end if
  46.     end if
  47.   end repeat
  48.   if rollover(41) then
  49.     HandCursor
  50.   else
  51.     if rollover(42) then
  52.       HandCursor
  53.     else
  54.       ArrowCursor
  55.     end if
  56.   end if
  57. end 
  58.  
  59. on VMap1Rollover 
  60.   repeat while rollover(6)
  61.     VikingCursor
  62.     if the mouseV > 285 and the mouseV < 345 then
  63.       if the mouseH > 59 and the MouseH < 124 then
  64.         set the castnum of sprite 6 = the number of cast "PV080500.PIC"
  65.         updatestage
  66.         if (the mousedown) then
  67.           puppetsprite 2, false
  68.           go "Map1"
  69.           abort
  70.         end if
  71.       else
  72.         if the mouseH > 124 and the MouseH < 188 then
  73.           set the castnum of sprite 6 = the number of cast "PV080600.PIC"
  74.           updatestage
  75.           if (the mousedown) then
  76.             puppetsprite 2, false
  77.             go "map2"
  78.             abort
  79.           end if
  80.         end if
  81.       end if
  82.     else
  83.       if the mouseV > 345 and the mouseV < 404 then
  84.         if the mouseH > 59 and the MouseH < 124 then
  85.           set the castnum of sprite 6 = the number of cast "PV080700.PIC"
  86.           updatestage
  87.           if (the mousedown) then
  88.             puppetsprite 2, false
  89.             go "map3"
  90.             abort
  91.           end if
  92.         else
  93.           if the mouseH > 124 and the MouseH < 188 then
  94.             set the castnum of sprite 6 = the number of cast "PV080800.PIC"
  95.             updatestage
  96.             if (the mousedown) then
  97.               puppetsprite 2, false
  98.               go "map4"
  99.               abort
  100.             end if
  101.           end if
  102.         end if
  103.       end if
  104.     end if
  105.   end repeat
  106.   if rollover(8) then
  107.     VikingCursor
  108.   else
  109.     if rollover(9) then
  110.       VikingCursor
  111.     else
  112.       if rollover(10) then
  113.         VikingCursor
  114.       else
  115.         if rollover(11) then
  116.           VikingCursor
  117.         else
  118.           if rollover(12) then
  119.             VikingCursor
  120.           else
  121.             ArrowCursor
  122.           end if
  123.         end if
  124.       end if
  125.     end if
  126.   end if
  127. end 
  128.  
  129.  
  130. on VMap2Rollover 
  131.   repeat while rollover(6)
  132.     VikingCursor
  133.     if the mouseV > 285 and the mouseV < 345 then
  134.       if the mouseH > 59 and the MouseH < 124 then
  135.         set the castnum of sprite 6 = the number of cast "PV080500.PIC"
  136.         updatestage
  137.         if (the mousedown) then
  138.           puppetsprite 2, false
  139.           go "Map1"
  140.           abort
  141.         end if
  142.       else
  143.         if the mouseH > 124 and the MouseH < 188 then
  144.           set the castnum of sprite 6 = the number of cast "PV080600.PIC"
  145.           updatestage
  146.           if (the mousedown) then
  147.             puppetsprite 2, false
  148.             go "map2"
  149.             abort
  150.           end if
  151.         end if
  152.       end if
  153.     else
  154.       if the mouseV > 345 and the mouseV < 404 then
  155.         if the mouseH > 59 and the MouseH < 124 then
  156.           set the castnum of sprite 6 = the number of cast "PV080700.PIC"
  157.           updatestage
  158.           if (the mousedown) then
  159.             puppetsprite 2, false
  160.             go "map3"
  161.             abort
  162.           end if
  163.         else
  164.           if the mouseH > 124 and the MouseH < 188 then
  165.             set the castnum of sprite 6 = the number of cast "PV080800.PIC"
  166.             updatestage
  167.             if (the mousedown) then
  168.               puppetsprite 2, false
  169.               go "map4"
  170.               abort
  171.             end if
  172.           end if
  173.         end if
  174.       end if
  175.     end if
  176.   end repeat
  177.   if rollover(8) then
  178.     VikingCursor
  179.   else
  180.     if rollover(9) then
  181.       VikingCursor
  182.     else
  183.       if rollover(10) then
  184.         VikingCursor
  185.       else
  186.         if rollover(12) then
  187.           VikingCursor
  188.         else
  189.           ArrowCursor
  190.         end if
  191.       end if
  192.     end if
  193.   end if
  194. end
  195.  
  196.  
  197. on WindBlow
  198.   ArrowCursor
  199.   puppetsound "SV082400.AIF"
  200.   set gSprite = 8
  201.   set gSprite2 = 11
  202.   set gCast = 38
  203.   set gCast2 = 30
  204.   puppetsprite 8, true
  205.   puppetsprite 11, true
  206.   set the castNum of sprite gSprite = gCast
  207.   set the castNum of sprite gSprite2 = gCast2
  208.   set theCast2 = the castNum of sprite gSprite2
  209.   set theCast = the castNum of sprite gSprite
  210.   set the castNum of sprite gSprite = theCast + 1
  211.   updatestage
  212.   wait .5
  213.   set the castNum of sprite gSprite = theCast + 2
  214.   updatestage
  215.   wait .5
  216.   set the castNum of sprite gSprite = theCast + 3
  217.   set the castNum of sprite gSprite2 = theCast2 + 1
  218.   updatestage
  219.   wait .8
  220.   set the castNum of sprite gSprite = theCast
  221.   set the castNum of sprite gSprite2 = theCast2 + 2
  222.   updatestage
  223.   wait .5
  224.   set the castNum of sprite gSprite2 = theCast2
  225.   updatestage
  226.   Puppetsound 0
  227.   puppetsprite 8, false
  228.   puppetsprite 11, false
  229. end
  230.  
  231. on SeaMonsterBlows
  232.   ArrowCursor
  233.   puppetsound "SV082400.AIF"
  234.   set gSprite2 = 8
  235.   set gSprite = 9
  236.   set gSprite3 = 10
  237.   set gCast = 46
  238.   set gCast2 = 42
  239.   set gCast3 = 52
  240.   puppetsprite 8, true
  241.   puppetsprite 9, true
  242.   puppetsprite 10, true
  243.   puppetsprite 11, true
  244.   set the castNum of sprite gSprite = gCast
  245.   set the castNum of sprite gSprite2 = gCast2
  246.   set the castNum of sprite gSprite3 = gCast3
  247.   set theCast3 = the castNum of sprite gSprite3
  248.   set theCast2 = the castNum of sprite gSprite2
  249.   set theCast = the castNum of sprite gSprite
  250.   set the castNum of sprite gSprite2 = theCast2 + 1
  251.   updatestage
  252.   wait .3
  253.   set the castNum of sprite gSprite2 = theCast2 + 2
  254.   updatestage
  255.   wait .3
  256.   set the castNum of sprite gSprite = theCast + 1
  257.   set the castNum of sprite gSprite2 = theCast2 + 3
  258.   updatestage
  259.   wait .3
  260.   set the castNum of sprite gSprite = theCast + 2
  261.   set the castNum of sprite gSprite2 = theCast2
  262.   set the castNum of sprite gSprite3 = theCast3 + 1
  263.   updatestage
  264.   wait .3
  265.   set the castNum of sprite gSprite = theCast + 3
  266.   updatestage
  267.   wait .3
  268.   set the castNum of sprite gSprite = theCast + 4
  269.   updatestage
  270.   wait .3
  271.   set the castNum of sprite gSprite3 = theCast3
  272.   set the castNum of sprite gSprite = theCast + 5
  273.   updatestage
  274.   wait .5
  275.   Puppetsound 0
  276.   puppetsprite 8, false
  277.   puppetsprite 9, false
  278.   puppetsprite 10, false
  279.   puppetsprite 11, false
  280. end
  281.  
  282.  
  283. on Camels whichsprite, whichCast, whichsprite2, whichCast2,whichsound
  284.   ArrowCursor
  285.   puppetsound whichsound
  286.   set gSprite = whichsprite
  287.   set gSprite2 = whichsprite2
  288.   set gCast = whichCast
  289.   set gCast2 = whichCast2
  290.   set the castNum of sprite gSprite = gCast
  291.   set RunThruCount = 0
  292.   repeat while RunThruCount < 2 and (the MouseUp)
  293.     set the castNum of sprite gSprite = gCast + 1
  294.     updatestage
  295.     wait .5
  296.     set the castNum of sprite gSprite = gCast
  297.     updatestage
  298.     wait .5
  299.     set the castNum of sprite gSprite2 = gCast2 + 1
  300.     set the castNum of sprite gSprite = gCast + 1
  301.     updatestage
  302.     wait .5
  303.     set the castNum of sprite gSprite = gCast
  304.     updatestage
  305.     wait .5
  306.     set the castNum of sprite gSprite2 = gCast2
  307.     set the castNum of sprite gSprite = gCast + 1
  308.     updatestage
  309.     wait .5
  310.     set the castNum of sprite gSprite = gCast
  311.     updatestage
  312.     wait .5
  313.     set RunThruCount = RunThruCount + 1
  314.   end repeat
  315.   set the castnum of sprite whichsprite = gCast
  316.   set the castNum of sprite gSprite2 = gCast2
  317.   updatestage
  318.   Sound Fadeout 1, 1*60
  319.   set gbeenclicked = 0
  320. end
  321.  
  322.  
  323. on Whales whichsprite, whichCast, whichsprite2, whichCast2, whichsound
  324.   ArrowCursor
  325.   set gSprite = whichsprite
  326.   set gCast = whichCast
  327.   set the castNum of sprite gSprite = gCast
  328.   set gSprite2 = whichsprite2
  329.   set gCast2 = whichCast2
  330.   set the castNum of sprite gSprite2 = gCast2
  331.   set the castNum of sprite gSprite = gCast + 1
  332.   set the castNum of sprite gSprite2 = gCast2 + 1
  333.   updatestage
  334.   wait .3
  335.   set the castNum of sprite gSprite = gCast + 2
  336.   set the castNum of sprite gSprite2 = gCast2 + 2
  337.   updatestage
  338.   wait .3
  339.   puppetsound whichsound
  340.   set the castNum of sprite gSprite = gCast + 3
  341.   set the castNum of sprite gSprite2 = gCast2 + 3
  342.   updatestage
  343.   wait 1
  344.   set the castNum of sprite gSprite = gCast
  345.   set the castNum of sprite gSprite2 = gCast2
  346.   updatestage
  347.   Puppetsound 0
  348.   set gbeenclicked = 0
  349. end
  350.  
  351.  
  352.  
  353. on ResetVMaps
  354.   set the castnum of sprite 6 = the number of cast "PV080500.PIC"
  355.   go "MapX"
  356. end
  357.  
  358.